﻿using Autofac;

namespace Synthesize.BaseSet.Domain
{
    public class DomainIocModel : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            builder.RegisterAssemblyTypes(this.ThisAssembly)
                .Where(x => x.Name.Contains("DomainService"))
                .InstancePerLifetimeScope();
        }
    }
}
